package com.fankui.crowd.service;

import com.fankui.crowd.entity.Admin;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * ClassName AdminService
 * Description TODO
 * Date 2023/7/27 17:32
 *
 * @Author 范奎
 * @Since JDK 11
 */
public interface AdminService {
    void saveAdmin(Admin admin);

    List<Admin> getAll();

    Admin getAdminByLoginAcct(String loginAcct, String userPswd);

    PageInfo<Admin> getAdminPage(String keyword, Integer pageNum, Integer pageSize);

    void removeAdminById(Integer adminId);

    Admin getAdminById(Integer adminId);

    void updateAdmin(Admin admin);

    Admin getAdminByLoginAcct(String username);
}
